home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000254_news@newsmaster….columbia.edu _Wed Aug 27 14:02:23 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA25968
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 27 Aug 1997 14:02:23 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA02765
for kermit.misc@watsun; Wed, 27 Aug 1997 14:02:23 -0400 (EDT)
Path: news.columbia.edu!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: storing and retrieving variables
Message-ID: <8IbO7ONq1$xA@cc.usu.edu>
Date: 27 Aug 97 09:59:54 MDT
References: <01bcb2dc$3864a340$c13aa8c2@peters>
Organization: Utah State University
Lines: 26
Xref: news.columbia.edu comp.protocols.kermit.misc:7570
In article <01bcb2dc$3864a340$c13aa8c2@peters>, "Gary Stainburn" <gary.stainburn@virgin.net> writes:
> I can store a variable using ASK but cannot display it in any way, or
> compare it using IF. Also I cannot initialise a variable
>
> can anyone help?
> Thanks
> Gary
------------
Perhaps the choice of words is getting in the way. Which Kermit,
please?
ASK foobar speak>
speak> this is fluff
show macro foobar
FOOBAR = this is fluff
echo the contents of foobar are \m(foobar)
the contents of foobar are this is fluff
A variable, foobar, is created by the ASK command. Its contents
are created at the same time, which in this example is the string "this is
fluff".
SHOW MAC is a quick way to list what's defined. \m(variable-name)
replaces that expression with the definition string of the variable.
IF eq {\m(foobar)} {this is fluff} echo they are the same
is an example of an IF statement matching strings, where { } enclose the
strings.
Joe D.